extends Node


enum Shapes {
	I, O, J, L, S, T, Z
	}
	
const cells = {
	Shapes.I:[Vector2i(0,0),Vector2i(-2,0),Vector2i(-1,0),Vector2i(1,0)],
	Shapes.O:[Vector2i(0,0),Vector2i(-1,0),Vector2i(-1,1),Vector2i(0,1)],
	Shapes.J:[Vector2i(0,0),Vector2i(-1,0),Vector2i(1,0),Vector2i(1,1)],
	Shapes.L:[Vector2i(0,0),Vector2i(-1,0),Vector2i(1,0),Vector2i(-1,1)],
	Shapes.S:[Vector2i(0,0),Vector2i(-1,1),Vector2i(0,1),Vector2i(1,0)],
	Shapes.T:[Vector2i(0,0),Vector2i(-1,0),Vector2i(1,0),Vector2i(0,-1)],
	Shapes.Z:[Vector2i(0,0),Vector2i(-1,0),Vector2i(0,1),Vector2i(1,1)]
}

const clockwise_rotation = Transform2D(Vector2i(0,1), Vector2i(-1, 0),Vector2i(0,0))
